home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / xdme_1.84_src.lha / XDME / Util / Var / lex.yy.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-22  |  38.8 KB  |  1,438 lines

  1. /* A lexical scanner generated by flex */
  2.  
  3. /* scanner skeleton version:
  4.  * $Header: /home/horse/u0/vern/flex/RCS/flex.skel,v 2.16 90/08/03 14:09:36 vern Exp Locker: vern $
  5.  */
  6.  
  7. #define FLEX_SCANNER
  8.  
  9. #include <stdio.h>
  10.  
  11.  
  12. /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  13. #ifdef c_plusplus
  14. #ifndef __cplusplus
  15. #define __cplusplus
  16. #endif
  17. #endif
  18.  
  19.  
  20. #ifdef __cplusplus
  21.  
  22. #include <stdlib.h>
  23. #include <osfcn.h>
  24.  
  25. /* use prototypes in function declarations */
  26. #define YY_USE_PROTOS
  27.  
  28. /* the "const" storage-class-modifier is valid */
  29. #define YY_USE_CONST
  30.  
  31. #else    /* ! __cplusplus */
  32.  
  33. #ifdef __STDC__
  34.  
  35. #ifdef __GNUC__
  36. #include <stddef.h>
  37. void *malloc( size_t );
  38. void free( void* );
  39. #else
  40. #include <stdlib.h>
  41. #endif    /* __GNUC__ */
  42.  
  43. #define YY_USE_PROTOS
  44. #define YY_USE_CONST
  45.  
  46. #endif    /* __STDC__ */
  47. #endif    /* ! __cplusplus */
  48.  
  49.  
  50. #ifdef __TURBOC__
  51. #define YY_USE_CONST
  52. #endif
  53.  
  54.  
  55. #ifndef YY_USE_CONST
  56. #define const
  57. #endif
  58.  
  59.  
  60. #ifdef YY_USE_PROTOS
  61. #define YY_PROTO(proto) proto
  62. #else
  63. #define YY_PROTO(proto) ()
  64. /* we can't get here if it's an ANSI C compiler, or a C++ compiler,
  65.  * so it's got to be a K&R compiler, and therefore there's no standard
  66.  * place from which to include these definitions
  67.  */
  68. char *malloc();
  69. int free();
  70. int read();
  71. #endif
  72.  
  73.  
  74. /* amount of stuff to slurp up with each read */
  75. #ifndef YY_READ_BUF_SIZE
  76. #define YY_READ_BUF_SIZE 8192
  77. #endif
  78.  
  79. /* returned upon end-of-file */
  80. #define YY_END_TOK 0
  81.  
  82. /* copy whatever the last rule matched to the standard output */
  83.  
  84. /* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
  85. /* this used to be an fputs(), but since the string might contain NUL's,
  86.  * we now use fwrite()
  87.  */
  88. #define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
  89.  
  90. /* gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  91.  * is returned in "result".
  92.  */
  93. #define YY_INPUT(buf,result,max_size) \
  94.     if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  95.         YY_FATAL_ERROR( "read() in flex scanner failed" );
  96. #define YY_NULL 0
  97.  
  98. /* no semi-colon after return; correct usage is to write "yyterminate();" -
  99.  * we don't want an extra ';' after the "return" because that will cause
  100.  * some compilers to complain about unreachable statements.
  101.  */
  102. #define yyterminate() return ( YY_NULL )
  103.  
  104. /* report a fatal error */
  105.  
  106. /* The funky do-while is used to turn this macro definition into
  107.  * a single C statement (which needs a semi-colon terminator).
  108.  * This avoids problems with code like:
  109.  *
  110.  *     if ( something_happens )
  111.  *        YY_FATAL_ERROR( "oops, the something happened" );
  112.  *    else
  113.  *        everything_okay();
  114.  *
  115.  * Prior to using the do-while the compiler would get upset at the
  116.  * "else" because it interpreted the "if" statement as being all
  117.  * done when it reached the ';' after the YY_FATAL_ERROR() call.
  118.  */
  119.  
  120. #define YY_FATAL_ERROR(msg) \
  121.     do \
  122.         { \
  123.         (void) fputs( msg, stderr ); \
  124.         (void) putc( '\n', stderr ); \
  125.         exit( 1 ); \
  126.         } \
  127.     while ( 0 )
  128.  
  129. /* default yywrap function - always treat EOF as an EOF */
  130. #define yywrap() 1
  131.  
  132. /* enter a start condition.  This macro really ought to take a parameter,
  133.  * but we do it the disgusting crufty way forced on us by the ()-less
  134.  * definition of BEGIN
  135.  */
  136. #define BEGIN yy_start = 1 + 2 *
  137.  
  138. /* action number for EOF rule of a given start state */
  139. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  140.  
  141. /* special action meaning "start processing a new file" */
  142. #define YY_NEW_FILE \
  143.     do \
  144.         { \
  145.         yy_init_buffer( yy_current_buffer, yyin ); \
  146.         yy_load_buffer_state(); \
  147.         } \
  148.     while ( 0 )
  149.  
  150. /* default declaration of generated scanner - a define so the user can
  151.  * easily add parameters
  152.  */
  153. #define YY_DECL int yylex YY_PROTO(( void )) 
  154.  
  155. /* code executed at the end of each rule */
  156. #define YY_BREAK break;
  157.  
  158. #define YY_END_OF_BUFFER_CHAR 0
  159.  
  160. #ifndef YY_BUF_SIZE
  161. #define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
  162. #endif
  163.  
  164. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  165.  
  166. #define FLEX_DEBUG
  167. #define YY_CHAR char
  168. # line 1 "r:lex.l"
  169. #define INITIAL 0
  170. # line 3 "r:lex.l"
  171. /*
  172.     > FLEX -d -i -I lex.l
  173.     > Dcc lex.yy.c -mD -c
  174. **
  175.     21-08-94 - added FLAG, REFERENCE
  176.     25-09-94 * rewritten
  177.  
  178. */
  179.  
  180. #include <stdlib.h>
  181. #include <string.h>
  182. #include <stdio.h>
  183. #include <fcntl.h>
  184. #include <ctype.h>
  185. #include "Dyn.h"
  186. #include "node.h"
  187. #include "y.tab.h"
  188. extern FILE *nextfile(void);
  189.  
  190. #define _ESC  "\\"
  191. #define _KET  "%}"
  192. #define _EKET "%]"
  193.  
  194. #define STORE(x) yylval = (int)strdup((x))
  195.  
  196. int  lineno   = 0;
  197. DSTR value    = EmptyDyn;
  198. char linebuffer[1000];
  199.  
  200. /* jeder txt muss mit "" eingesclossen sein!; "\\" werden gestrippt */
  201. char * Strip (const char *txt, int embedded)
  202. {
  203.     char *dest = linebuffer;
  204.     char c = 0;
  205.  
  206.     if (embedded)
  207.     if (*txt == '"')
  208.         ++txt;
  209.  
  210.     while (c = *(txt ++)) {
  211.     if (c == '\\')
  212.         c = *(txt++);
  213.     *(dest++) = c;
  214.     } /* while */
  215.  
  216.     if (embedded)
  217.     if (*(--dest) != '"')
  218.         ++dest;
  219.     *dest = 0;
  220.     return linebuffer;
  221. } /* Strip */
  222.  
  223.  
  224. /* int read(FILE *, char *, int); */
  225. #define ASSIGN 1
  226. #define INFRA 2
  227. #define INTRA 3
  228. #define INFR2 4
  229. # line 79 "r:lex.l"
  230.  
  231. /* done after the current pattern has been matched and before the
  232.  * corresponding action - sets up yytext
  233.  */
  234. #define YY_DO_BEFORE_ACTION \
  235.     yytext = yy_bp; \
  236.     yytext -= yy_more_len; \
  237.     yyleng = yy_cp - yytext; \
  238.     yy_hold_char = *yy_cp; \
  239.     *yy_cp = '\0'; \
  240.     yy_c_buf_p = yy_cp;
  241.  
  242. #define EOB_ACT_CONTINUE_SCAN 0
  243. #define EOB_ACT_END_OF_FILE 1
  244. #define EOB_ACT_LAST_MATCH 2
  245.  
  246. /* return all but the first 'n' matched characters back to the input stream */
  247. #define yyless(n) \
  248.     do \
  249.         { \
  250.         /* undo effects of setting up yytext */ \
  251.         *yy_cp = yy_hold_char; \
  252.         yy_c_buf_p = yy_cp = yy_bp + n; \
  253.         YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  254.         } \
  255.     while ( 0 )
  256.  
  257. #define unput(c) yyunput( c, yytext )
  258.  
  259.  
  260. struct yy_buffer_state
  261.     {
  262.     FILE *yy_input_file;
  263.  
  264.     YY_CHAR *yy_ch_buf;        /* input buffer */
  265.     YY_CHAR *yy_buf_pos;    /* current position in input buffer */
  266.  
  267.     /* size of input buffer in bytes, not including room for EOB characters */
  268.     int yy_buf_size;    
  269.  
  270.     /* number of characters read into yy_ch_buf, not including EOB characters */
  271.     int yy_n_chars;
  272.  
  273.     int yy_eof_status;        /* whether we've seen an EOF on this buffer */
  274. #define EOF_NOT_SEEN 0
  275.     /* "pending" happens when the EOF has been seen but there's still
  276.      * some text process
  277.      */
  278. #define EOF_PENDING 1
  279. #define EOF_DONE 2
  280.     };
  281.  
  282. static YY_BUFFER_STATE yy_current_buffer;
  283.  
  284. /* we provide macros for accessing buffer states in case in the
  285.  * future we want to put the buffer states in a more general
  286.  * "scanner state"
  287.  */
  288. #define YY_CURRENT_BUFFER yy_current_buffer
  289.  
  290.  
  291. /* yy_hold_char holds the character lost when yytext is formed */
  292. static YY_CHAR yy_hold_char;
  293.  
  294. static int yy_n_chars;        /* number of characters read into yy_ch_buf */
  295.  
  296.  
  297.  
  298. #ifndef YY_USER_ACTION
  299. #define YY_USER_ACTION
  300. #endif
  301.  
  302. #ifndef YY_USER_INIT
  303. #define YY_USER_INIT
  304. #endif
  305.  
  306. extern YY_CHAR *yytext;
  307. extern int yyleng;
  308. extern FILE *yyin, *yyout;
  309.  
  310. YY_CHAR *yytext;
  311. int yyleng;
  312.  
  313. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  314.  
  315. #define YY_END_OF_BUFFER 54
  316. typedef int yy_state_type;
  317. static const short int yy_acclist[317] =
  318.     {   0,
  319.        40,   40,   54,   50,   53,   45,   50,   53,    1,   46,
  320.        53,   50,   53,   41,   47,   50,   53,   45,   47,   50,
  321.        53,    1,   46,   53,   47,   50,   53,   47,   50,   53,
  322.        47,   50,   53,   13,   47,   50,   53,   47,   50,   53,
  323.        12,   47,   50,   53,   14,   47,   50,   53,   47,   50,
  324.        53,   11,   41,   47,   50,   53,   11,   41,   47,   50,
  325.        53,   11,   41,   47,   50,   53,   11,   41,   47,   50,
  326.        53,   11,   41,   47,   50,   53,   11,   41,   47,   50,
  327.        53,   11,   41,   47,   50,   53,   18,   47,   50,   53,
  328.        19,   47,   50,   53,   26,   27,   48,   50,   53,   27,
  329.  
  330.        28,   45,   48,   50,   53,    1,   25,   46,   53,   27,
  331.        48,   50,   53,   27,   48,   50,   53,   27,   48,   50,
  332.        53,   27,   48,   50,   53,   40,   49,   50,   53,   40,
  333.        45,   49,   50,   53,   40,   49,   50,   53,   35,   36,
  334.        50,   53,   36,   37,   45,   50,   53,    1,   34,   46,
  335.        53,   36,   50,   53,   36,   50,   53,   36,   50,   53,
  336.        36,   50,   53,   45,   44,   41,   41,   39,   38,   20,
  337.        21,   16,   17,   15,   11,   41,   11,   41,   11,   41,
  338.        11,   41,   11,   41,   11,   41,   11,   41,   11,   41,
  339.        29,   30,   26,   28,   45,   24,   22,   40,   40,   45,
  340.  
  341.        40,   44,   35,   37,   45,   31,   32,   33,   44,   41,
  342.        41,   11,   41,   11,   41,   11,   41,   11,   41,   11,
  343.        41,   11,   41,   11,   41,   11,   41,   11,   41,   23,
  344.        40,   44,   11,   41,   11,   41,   11,   41,   11,   41,
  345.        11,   41,   11,   41,   11,   41,   11,   41,   11,   41,
  346.        11,   41,   11,   41,   11,   41,    4,   11,   41,   11,
  347.        41,   11,   41,   11,   41,   11,   41,   11,   41,   42,
  348.        11,   41,   11,   41,   11,   41,   11,   41,    3,   11,
  349.        41,    5,   11,   41,   11,   41,   11,   41,   42,   43,
  350.        11,   41,   11,   41,    8,   11,   41,    7,   11,   41,
  351.  
  352.        11,   41,    2,   11,   41,   11,   41,    9,   11,   41,
  353.         6,   11,   41,   10,   11,   41
  354.     } ;
  355.  
  356. static const short int yy_accept[158] =
  357.     {   0,
  358.         1,    1,    1,    1,    1,    1,    1,    2,    3,    3,
  359.         3,    4,    6,    9,   12,   14,   18,   22,   25,   28,
  360.        31,   34,   38,   41,   45,   49,   52,   57,   62,   67,
  361.        72,   77,   82,   87,   91,   95,  100,  106,  110,  114,
  362.       118,  122,  126,  130,  135,  139,  143,  148,  152,  155,
  363.       158,  161,  164,  165,  165,  166,  167,  168,  168,  168,
  364.       168,  169,  169,  170,  171,  172,  173,  174,  175,  177,
  365.       179,  181,  183,  185,  187,  189,  191,  192,  193,  194,
  366.       196,  197,  197,  198,  199,  201,  203,  204,  206,  207,
  367.       208,  209,  209,  210,  211,  212,  212,  212,  214,  216,
  368.  
  369.       218,  220,  222,  224,  226,  228,  230,  231,  233,  233,
  370.       233,  235,  237,  239,  241,  243,  245,  247,  249,  251,
  371.       251,  251,  251,  253,  255,  257,  260,  262,  264,  266,
  372.       268,  270,  271,  271,  271,  273,  275,  277,  279,  282,
  373.       285,  287,  289,  290,  290,  291,  293,  295,  298,  301,
  374.       303,  306,  308,  311,  314,  317,  317
  375.     } ;
  376.  
  377. static const YY_CHAR yy_ec[128] =
  378.     {   0,
  379.         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
  380.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  381.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  382.         1,    2,    1,    4,    5,    1,    6,    1,    1,    1,
  383.         1,    1,    7,    8,    1,    1,    9,   10,   10,   10,
  384.        10,   10,   10,   10,   10,   10,   10,    1,   11,    1,
  385.        12,    1,    1,    1,   17,   18,   19,   20,   21,   22,
  386.        23,   24,   25,   26,   27,   28,   27,   29,   30,   31,
  387.        27,   32,   33,   34,   35,   27,   27,   27,   36,   27,
  388.        13,   14,   15,    1,   16,    1,   17,   18,   19,   20,
  389.  
  390.        21,   22,   23,   24,   25,   26,   27,   28,   27,   29,
  391.        30,   31,   27,   32,   33,   34,   35,   27,   27,   27,
  392.        36,   27,   37,    1,   38,    1,    1
  393.     } ;
  394.  
  395. static const YY_CHAR yy_meta[39] =
  396.     {   0,
  397.         1,    2,    3,    4,    1,    4,    4,    5,    6,    7,
  398.         4,    4,    6,    4,    6,    8,    8,    8,    8,    8,
  399.         8,    8,    8,    8,    8,    8,    8,    8,    8,    8,
  400.         8,    8,    8,    8,    8,    8,    4,    4
  401.     } ;
  402.  
  403. static const short int yy_base[173] =
  404.     {   0,
  405.         0,    2,   11,    0,   48,   85,   62,   64,  122,  159,
  406.       321,  350,  318,  313,  302,   65,  304,  299,   65,   69,
  407.       291,  350,  293,  350,  350,  350,  197,  213,  265,   49,
  408.       265,  259,  255,  249,  243,    0,  278,  273,  350,  256,
  409.       256,   87,    0,  262,  253,    0,  225,  220,  350,  215,
  410.        67,  185,  219,  195,    0,   99,  100,    0,   51,  106,
  411.       350,  107,  350,  350,  350,  350,  350,  350,    0,   98,
  412.       190,  188,  185,  191,  175,  178,  350,  350,    0,  205,
  413.       350,  190,  350,    0,  202,    0,    0,  201,  350,  350,
  414.       350,  179,    0,  135,  136,  170,  126,  174,  173,  157,
  415.  
  416.       159,  170,  172,  169,  167,  161,  350,    0,  144,  166,
  417.       163,  163,  152,  148,  149,  163,  158,  146,  156,  174,
  418.       148,  142,  141,  136,  134,    0,  129,  125,  123,  118,
  419.       124,    0,  120,  119,   84,   96,   83,   85,    0,    0,
  420.        78,   56,    0,  155,  350,   55,   38,    0,    0,   28,
  421.         0,   19,    0,    0,    0,  350,  228,  236,  244,  252,
  422.       260,  268,  276,  284,  292,  300,  308,  316,  324,  332,
  423.       339,  341
  424.     } ;
  425.  
  426. static const short int yy_def[173] =
  427.     {   0,
  428.       157,  157,  156,    3,  158,  158,  159,  159,  160,  160,
  429.       156,  156,  156,  156,  156,  161,  156,  156,  162,  156,
  430.       156,  156,  156,  156,  156,  156,  163,  163,   28,   28,
  431.        28,   28,   28,  156,  156,  164,  156,  156,  156,  156,
  432.       156,  156,  165,  165,  165,  166,  156,  156,  156,  156,
  433.       156,  156,  156,  156,  167,  161,  168,  169,  156,  162,
  434.       156,  156,  156,  156,  156,  156,  156,  156,   28,   28,
  435.        28,   28,   28,   28,   28,   28,  156,  156,  164,  156,
  436.       156,  156,  156,  165,  165,  170,  166,  156,  156,  156,
  437.       156,  156,  167,  168,  169,  156,  162,   28,   28,   28,
  438.  
  439.        28,   28,   28,   28,   28,   28,  156,  170,  156,  156,
  440.        28,   28,   28,   28,   28,   28,   28,   28,   28,  171,
  441.       156,  156,   28,   28,   28,   28,   28,   28,   28,   28,
  442.        28,  172,  156,  156,   28,   28,   28,   28,   28,   28,
  443.        28,   28,  172,  156,  156,   28,   28,   28,   28,   28,
  444.        28,   28,   28,   28,   28,    0,  156,  156,  156,  156,
  445.       156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
  446.       156,  156
  447.     } ;
  448.  
  449. static const short int yy_nxt[389] =
  450.     {   0,
  451.       156,   13,   14,   13,   14,  156,  156,  156,   15,  156,
  452.        15,   16,   17,   18,   19,   16,   20,   21,   22,   23,
  453.        16,   24,   25,   26,   26,   26,   27,   28,   28,   29,
  454.        28,   28,   28,   30,   31,   32,   28,   28,   28,   28,
  455.        28,   33,   28,   28,   28,   28,   28,   34,   35,   37,
  456.        38,   39,  155,   40,   39,  154,   41,  153,   39,   39,
  457.        39,   42,   39,   44,   14,   44,   14,   57,   61,   72,
  458.        45,   96,   45,   58,   63,   92,   73,   57,   62,   57,
  459.        89,   64,  152,   65,   39,   39,   37,   38,   39,  151,
  460.        40,   39,   82,   41,  150,   39,   39,   39,   42,   39,
  461.  
  462.        83,   57,   57,  149,   90,   66,   67,   58,   58,   61,
  463.        97,   57,   57,   57,   57,  148,  147,   98,  146,   62,
  464.        97,   39,   39,   47,   48,   49,   99,   49,   49,   61,
  465.        50,  100,   49,   49,   49,   51,   49,   57,   57,   62,
  466.       145,  144,  142,   58,   58,  120,  141,   57,   57,   57,
  467.        57,  140,  139,  138,  137,  136,  120,  135,   49,   52,
  468.        47,   48,   49,  121,   49,   49,  134,   50,  133,   49,
  469.        49,   49,   51,   49,  121,  120,  131,  130,  129,  128,
  470.       127,  126,  125,  124,  123,  122,  119,  118,  117,  116,
  471.       115,  114,  113,  112,  111,   49,   52,   56,  110,   57,
  472.  
  473.       109,   56,   88,   85,  107,   58,   80,  106,  105,   57,
  474.       104,   57,   70,   56,  103,   57,  102,   56,  101,   92,
  475.        53,   58,   91,   55,   54,   57,   88,   57,   12,   12,
  476.        12,   12,   12,   12,   12,   12,   36,   36,   36,   36,
  477.        36,   36,   36,   36,   43,   43,   43,   43,   43,   43,
  478.        43,   43,   46,   46,   46,   46,   46,   46,   46,   46,
  479.        56,   86,   56,   85,   55,   56,   56,   56,   60,   60,
  480.        81,   60,   60,   60,   60,   60,   69,   54,   69,   80,
  481.        78,   69,   69,   69,   79,   77,   76,   75,   79,   74,
  482.        79,   79,   84,   84,   71,   84,   84,   84,   84,   84,
  483.  
  484.        87,   55,   68,   59,   87,   53,   87,   87,   93,   93,
  485.        55,   93,   93,   93,   93,   93,   94,   54,   94,   53,
  486.       156,   94,   94,   94,   95,  156,  156,  156,  156,  156,
  487.        95,   95,  108,  108,  156,  108,  108,  108,  108,  108,
  488.       132,  156,  156,  156,  156,  156,  132,  143,  143,   11,
  489.       156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
  490.       156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
  491.       156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
  492.       156,  156,  156,  156,  156,  156,  156,  156
  493.     } ;
  494.  
  495. static const short int yy_chk[389] =
  496.     {   0,
  497.         0,    1,    1,    2,    2,    0,    0,    0,    1,    0,
  498.         2,    3,    3,    3,    3,    3,    3,    3,    3,    3,
  499.         3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
  500.         3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
  501.         3,    3,    3,    3,    3,    3,    3,    3,    3,    5,
  502.         5,    5,  152,    5,    5,  150,    5,  147,    5,    5,
  503.         5,    5,    5,    7,    7,    8,    8,   16,   19,   30,
  504.         7,   59,    8,   16,   20,   59,   30,   16,   19,   16,
  505.        51,   20,  146,   20,    5,    5,    6,    6,    6,  142,
  506.         6,    6,   42,    6,  141,    6,    6,    6,    6,    6,
  507.  
  508.        42,   56,   57,  138,   51,   20,   20,   56,   57,   60,
  509.        62,   56,   57,   56,   57,  137,  136,   70,  135,   60,
  510.        62,    6,    6,    9,    9,    9,   70,    9,    9,   97,
  511.         9,   70,    9,    9,    9,    9,    9,   94,   95,   97,
  512.       134,  133,  131,   94,   95,  109,  130,   94,   95,   94,
  513.        95,  129,  128,  127,  125,  124,  144,  123,    9,    9,
  514.        10,   10,   10,  109,   10,   10,  122,   10,  121,   10,
  515.        10,   10,   10,   10,  144,  120,  119,  118,  117,  116,
  516.       115,  114,  113,  112,  111,  110,  106,  105,  104,  103,
  517.       102,  101,  100,   99,   98,   10,   10,   27,   96,   27,
  518.  
  519.        92,   27,   88,   85,   82,   27,   80,   76,   75,   27,
  520.        74,   27,   27,   28,   73,   28,   72,   28,   71,   54,
  521.        53,   28,   52,   50,   48,   28,   47,   28,  157,  157,
  522.       157,  157,  157,  157,  157,  157,  158,  158,  158,  158,
  523.       158,  158,  158,  158,  159,  159,  159,  159,  159,  159,
  524.       159,  159,  160,  160,  160,  160,  160,  160,  160,  160,
  525.       161,   45,  161,   44,   41,  161,  161,  161,  162,  162,
  526.        40,  162,  162,  162,  162,  162,  163,   38,  163,   37,
  527.        35,  163,  163,  163,  164,   34,   33,   32,  164,   31,
  528.       164,  164,  165,  165,   29,  165,  165,  165,  165,  165,
  529.  
  530.       166,   23,   21,   18,  166,   17,  166,  166,  167,  167,
  531.        15,  167,  167,  167,  167,  167,  168,   14,  168,   13,
  532.        11,  168,  168,  168,  169,    0,    0,    0,    0,    0,
  533.       169,  169,  170,  170,    0,  170,  170,  170,  170,  170,
  534.       171,    0,    0,    0,    0,    0,  171,  172,  172,  156,
  535.       156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
  536.       156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
  537.       156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
  538.       156,  156,  156,  156,  156,  156,  156,  156
  539.     } ;
  540.  
  541. static yy_state_type yy_last_accepting_state;
  542. static YY_CHAR *yy_last_accepting_cpos;
  543.  
  544. extern int yy_flex_debug;
  545. int yy_flex_debug = 1;
  546.  
  547. static const short int yy_rule_linenum[53] =
  548.     {   0,
  549.        81,   83,   84,   85,   86,   87,   88,   90,   91,   92,
  550.        93,   95,   96,   97,   98,   99,  100,  101,  102,  104,
  551.       105,  106,  107,  108,  109,  110,  111,  112,  114,  115,
  552.       116,  117,  118,  119,  120,  121,  122,  124,  125,  126,
  553.       127,  129,  131,  132,  133,  134,  135,  136,  137,  138,
  554.       138,  139
  555.     } ;
  556.  
  557. static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
  558. static YY_CHAR *yy_full_match;
  559. static int yy_lp;
  560. #define REJECT \
  561. { \
  562. *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
  563. yy_cp = yy_full_match; /* restore poss. backed-over text */ \
  564. ++yy_lp; \
  565. goto find_rule; \
  566. }
  567. static int yy_more_flag = 0;
  568. static int yy_doing_yy_more = 0;
  569. static int yy_more_len = 0;
  570. #define yymore() { yy_more_flag = 1; }
  571. #define YY_MORE_ADJ (yy_doing_yy_more ? yy_more_len : 0)
  572.  
  573. /* these variables are all declared out here so that section 3 code can
  574.  * manipulate them
  575.  */
  576. /* points to current character in buffer */
  577. static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
  578. static int yy_init = 1;        /* whether we need to initialize */
  579. static int yy_start = 0;    /* start state number */
  580.  
  581. /* flag which is used to allow yywrap()'s to do buffer switches
  582.  * instead of setting up a fresh yyin.  A bit of a hack ...
  583.  */
  584. static int yy_did_buffer_switch_on_eof;
  585.  
  586. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  587. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  588. static int yy_get_next_buffer YY_PROTO(( void ));
  589. static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
  590. void yyrestart YY_PROTO(( FILE *input_file ));
  591. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  592. void yy_load_buffer_state YY_PROTO(( void ));
  593. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  594. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  595. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  596.  
  597. #define yy_new_buffer yy_create_buffer
  598.  
  599. #ifdef __cplusplus
  600. static int yyinput YY_PROTO(( void ));
  601. #else
  602. static int input YY_PROTO(( void ));
  603. #endif
  604.  
  605. YY_DECL
  606.     {
  607.     register yy_state_type yy_current_state;
  608.     register YY_CHAR *yy_cp, *yy_bp;
  609.     register int yy_act;
  610.  
  611.  
  612.  
  613.  
  614.     if ( yy_init )
  615.     {
  616.     YY_USER_INIT;
  617.  
  618.     if ( ! yy_start )
  619.         yy_start = 1;    /* first start state */
  620.  
  621.     if ( ! yyin )
  622.         yyin = stdin;
  623.  
  624.     if ( ! yyout )
  625.         yyout = stdout;
  626.  
  627.     if ( yy_current_buffer )
  628.         yy_init_buffer( yy_current_buffer, yyin );
  629.     else
  630.         yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  631.  
  632.     yy_load_buffer_state();
  633.  
  634.     yy_init = 0;
  635.     }
  636.  
  637.     while ( 1 )        /* loops until end-of-file is reached */
  638.     {
  639.     yy_more_len = 0;
  640.     yy_doing_yy_more = yy_more_flag;
  641.     if ( yy_doing_yy_more )
  642.         {
  643.         yy_more_len = yyleng;
  644.         yy_more_flag = 0;
  645.         }
  646.     yy_cp = yy_c_buf_p;
  647.  
  648.     /* support of yytext */
  649.     *yy_cp = yy_hold_char;
  650.  
  651.     /* yy_bp points to the position in yy_ch_buf of the start of the
  652.      * current run.
  653.      */
  654.     yy_bp = yy_cp;
  655.  
  656.     yy_current_state = yy_start;
  657.     yy_state_ptr = yy_state_buf;
  658.     *yy_state_ptr++ = yy_current_state;
  659. yy_match:
  660.     do
  661.         {
  662.         register YY_CHAR yy_c = yy_ec[*yy_cp];
  663.         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  664.         {
  665.         yy_current_state = yy_def[yy_current_state];
  666.         if ( yy_current_state >= 157 )
  667.             yy_c = yy_meta[yy_c];
  668.         }
  669.         yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  670.         *yy_state_ptr++ = yy_current_state;
  671.         ++yy_cp;
  672.         }
  673.     while ( yy_base[yy_current_state] != 350 );
  674.  
  675. yy_find_action:
  676.     yy_current_state = *--yy_state_ptr;
  677.     yy_lp = yy_accept[yy_current_state];
  678. find_rule: /* we branch to this label when backtracking */
  679.     for ( ; ; ) /* until we find what rule we matched */
  680.         {
  681.         if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
  682.         {
  683.         yy_act = yy_acclist[yy_lp];
  684.             {
  685.             yy_full_match = yy_cp;
  686.             break;
  687.             }
  688.         }
  689.         --yy_cp;
  690.         yy_current_state = *--yy_state_ptr;
  691.         yy_lp = yy_accept[yy_current_state];
  692.         }
  693.  
  694.     YY_DO_BEFORE_ACTION;
  695.     YY_USER_ACTION;
  696.  
  697. do_action:    /* this label is used only to access EOF actions */
  698.  
  699.     if ( yy_flex_debug )
  700.         {
  701.         if ( yy_act == 0 )
  702.         fprintf( stderr, "--scanner backtracking\n" );
  703.         else if ( yy_act < 53 )
  704.         fprintf( stderr, "--accepting rule at line %d (\"%s\")\n",
  705.                  yy_rule_linenum[yy_act], yytext );
  706.         else if ( yy_act == 53 )
  707.         fprintf( stderr, "--accepting default rule (\"%s\")\n",
  708.                  yytext );
  709.         else if ( yy_act == 54 )
  710.         fprintf( stderr, "--(end of buffer or a NUL)\n" );
  711.         else
  712.         fprintf( stderr, "--EOF\n" );
  713.         }
  714.  
  715.     switch ( yy_act )
  716.         {
  717. case 1:
  718. # line 81 "r:lex.l"
  719. { ++ lineno; REJECT; }
  720.     YY_BREAK
  721. case 2:
  722. # line 83 "r:lex.l"
  723. {            return PROJECT;   }
  724.     YY_BREAK
  725. case 3:
  726. # line 84 "r:lex.l"
  727. {            return GLOBAL;    }
  728.     YY_BREAK
  729. case 4:
  730. # line 85 "r:lex.l"
  731. {            return CONST;     }
  732.     YY_BREAK
  733. case 5:
  734. # line 86 "r:lex.l"
  735. {            return HIDDEN;    }
  736.     YY_BREAK
  737. case 6:
  738. # line 87 "r:lex.l"
  739. {            return INTERNAL;  }
  740.     YY_BREAK
  741. case 7:
  742. # line 88 "r:lex.l"
  743. {            return GENERIC;   }
  744.     YY_BREAK
  745. case 8:
  746. # line 90 "r:lex.l"
  747. {            return TYPES;   }
  748.     YY_BREAK
  749. case 9:
  750. # line 91 "r:lex.l"
  751. {            return NEEDED;  }
  752.     YY_BREAK
  753. case 10:
  754. # line 92 "r:lex.l"
  755. {            return DEFAULT; }
  756.     YY_BREAK
  757. case 11:
  758. # line 93 "r:lex.l"
  759. { STORE(yytext); return (NODE_IsType((void*)yylval)) ? GENTYPE : LABEL; }
  760.     YY_BREAK
  761. case 12:
  762. # line 95 "r:lex.l"
  763. {            return SEMI;  }
  764.     YY_BREAK
  765. case 13:
  766. # line 96 "r:lex.l"
  767. {            return KOMMA; }
  768.     YY_BREAK
  769. case 14:
  770. # line 97 "r:lex.l"
  771. {            return ASS;   }
  772.     YY_BREAK
  773. case 15:
  774. # line 98 "r:lex.l"
  775. {            return ADD;   }
  776.     YY_BREAK
  777. case 16:
  778. # line 99 "r:lex.l"
  779. {            return RBRA;  }
  780.     YY_BREAK
  781. case 17:
  782. # line 100 "r:lex.l"
  783. {            return RKET;  }
  784.     YY_BREAK
  785. case 18:
  786. # line 101 "r:lex.l"
  787. {            return SBRA;  }
  788.     YY_BREAK
  789. case 19:
  790. # line 102 "r:lex.l"
  791. {            return SKET;  }
  792.     YY_BREAK
  793. case 20:
  794. # line 104 "r:lex.l"
  795. { BEGIN INFRA;  DynClear(&value); return EBRA; }
  796.     YY_BREAK
  797. case 21:
  798. # line 105 "r:lex.l"
  799. {                      return EKET; }
  800.     YY_BREAK
  801. case 22:
  802. # line 107 "r:lex.l"
  803. case 23:
  804. # line 107 "r:lex.l"
  805. {            DynCat (&value, yytext + 1); }
  806.     YY_BREAK
  807. case 24:
  808. # line 108 "r:lex.l"
  809. { BEGIN ASSIGN; STORE(DynValue(&value)); yyless(0); return VALUE;  }
  810.     YY_BREAK
  811. case 25:
  812. # line 109 "r:lex.l"
  813. {           yymore(); }
  814.     YY_BREAK
  815. case 26:
  816. # line 111 "r:lex.l"
  817. case 27:
  818. # line 112 "r:lex.l"
  819. case 28:
  820. # line 112 "r:lex.l"
  821. {            DynCat (&value, yytext); }
  822.     YY_BREAK
  823. case 29:
  824. # line 114 "r:lex.l"
  825. { BEGIN INFR2;  DynClear(&value); return SSBRA; }
  826.     YY_BREAK
  827. case 30:
  828. # line 115 "r:lex.l"
  829. {                      return SSKET; }
  830.     YY_BREAK
  831. case 31:
  832. # line 117 "r:lex.l"
  833. case 32:
  834. # line 117 "r:lex.l"
  835. {            DynCat (&value, yytext + 1); }
  836.     YY_BREAK
  837. case 33:
  838. # line 118 "r:lex.l"
  839. { BEGIN ASSIGN; STORE(DynValue(&value)); yyless(0); return VALUE;  }
  840.     YY_BREAK
  841. case 34:
  842. # line 119 "r:lex.l"
  843. {           yymore(); }
  844.     YY_BREAK
  845. case 35:
  846. # line 121 "r:lex.l"
  847. case 36:
  848. # line 122 "r:lex.l"
  849. case 37:
  850. # line 122 "r:lex.l"
  851. {            DynCat (&value, yytext); }
  852.     YY_BREAK
  853. case 38:
  854. # line 124 "r:lex.l"
  855. { BEGIN INTRA;                }
  856.     YY_BREAK
  857. case 39:
  858. # line 125 "r:lex.l"
  859. { STORE(Strip(yytext,1)); return VALUE; }
  860.     YY_BREAK
  861. case 40:
  862. # line 126 "r:lex.l"
  863. { BEGIN ASSIGN; STORE(yytext);          return VALUE; }
  864.     YY_BREAK
  865. case 41:
  866. # line 127 "r:lex.l"
  867. {            STORE(Strip(yytext,0)); return VALUE; }
  868.     YY_BREAK
  869. case 42:
  870. # line 129 "r:lex.l"
  871. { extern char *inittext; if (!strstr(yytext, inittext)) REJECT;
  872.             BEGIN ASSIGN; return BLOCKSTART;  /* Parseblock START */ }
  873.     YY_BREAK
  874. case 43:
  875. # line 131 "r:lex.l"
  876. {        BEGIN 0;          /* Parseblock END   */ }
  877.     YY_BREAK
  878. case 44:
  879. # line 132 "r:lex.l"
  880. {                      /* Kommentare       */ }
  881.     YY_BREAK
  882. case 45:
  883. # line 133 "r:lex.l"
  884. {                      /* Whitespace       */ }
  885.     YY_BREAK
  886. case 46:
  887. # line 134 "r:lex.l"
  888. {                      /* Newlines          */ }
  889.     YY_BREAK
  890. case 47:
  891. # line 135 "r:lex.l"
  892. {                return -1;      /* Unmatched Chars  */ }
  893.     YY_BREAK
  894. case 48:
  895. # line 136 "r:lex.l"
  896. {                return -1;      /* Unmatched Chars  */ }
  897.     YY_BREAK
  898. case 49:
  899. # line 137 "r:lex.l"
  900. {                return -1;      /* Unmatched Chars  */ }
  901.     YY_BREAK
  902. case 50:
  903. # line 138 "r:lex.l"
  904. {                      /* App Source - NOP */ }
  905.     YY_BREAK
  906. case YY_STATE_EOF(ASSIGN):
  907. # line 139 "r:lex.l"
  908. { extern char *filename; BEGIN 0; fprintf (stderr, "unexpected EOF in `%s',%d\n",filename, lineno); REJECT; }
  909.     YY_BREAK
  910. case YY_STATE_EOF(INITIAL):
  911. case YY_STATE_EOF(INFRA):
  912. case YY_STATE_EOF(INTRA):
  913. case YY_STATE_EOF(INFR2):
  914. # line 140 "r:lex.l"
  915. { BEGIN 0; if ((yyin = nextfile())) { lineno = 0; YY_NEW_FILE; } else return 0; }
  916.     YY_BREAK
  917. case 53:
  918. # line 142 "r:lex.l"
  919. ECHO;
  920.     YY_BREAK
  921.  
  922.         case YY_END_OF_BUFFER:
  923.         {
  924.         /* amount of text matched not including the EOB char */
  925.         int yy_amount_of_matched_text = yy_cp - yytext - 1;
  926.  
  927.         /* undo the effects of YY_DO_BEFORE_ACTION */
  928.         *yy_cp = yy_hold_char;
  929.  
  930.         /* note that here we test for yy_c_buf_p "<=" to the position
  931.          * of the first EOB in the buffer, since yy_c_buf_p will
  932.          * already have been incremented past the NUL character
  933.          * (since all states make transitions on EOB to the end-
  934.          * of-buffer state).  Contrast this with the test in yyinput().
  935.          */
  936.         if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  937.             /* this was really a NUL */
  938.             {
  939.             yy_state_type yy_next_state;
  940.  
  941.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  942.  
  943.             yy_current_state = yy_get_previous_state();
  944.  
  945.             /* okay, we're now positioned to make the
  946.              * NUL transition.  We couldn't have
  947.              * yy_get_previous_state() go ahead and do it
  948.              * for us because it doesn't know how to deal
  949.              * with the possibility of jamming (and we
  950.              * don't want to build jamming into it because
  951.              * then it will run more slowly)
  952.              */
  953.  
  954.             yy_next_state = yy_try_NUL_trans( yy_current_state );
  955.  
  956.             yy_bp = yytext + YY_MORE_ADJ;
  957.  
  958.             if ( yy_next_state )
  959.             {
  960.             /* consume the NUL */
  961.             yy_cp = ++yy_c_buf_p;
  962.             yy_current_state = yy_next_state;
  963.             goto yy_match;
  964.             }
  965.  
  966.             else
  967.             {
  968.             goto yy_find_action;
  969.             }
  970.             }
  971.  
  972.         else switch ( yy_get_next_buffer() )
  973.             {
  974.             case EOB_ACT_END_OF_FILE:
  975.             {
  976.             yy_did_buffer_switch_on_eof = 0;
  977.  
  978.             if ( yywrap() )
  979.                 {
  980.                 /* note: because we've taken care in
  981.                  * yy_get_next_buffer() to have set up yytext,
  982.                  * we can now set up yy_c_buf_p so that if some
  983.                  * total hoser (like flex itself) wants
  984.                  * to call the scanner after we return the
  985.                  * YY_NULL, it'll still work - another YY_NULL
  986.                  * will get returned.
  987.                  */
  988.                 yy_c_buf_p = yytext + YY_MORE_ADJ;
  989.  
  990.                 yy_act = YY_STATE_EOF((yy_start - 1) / 2);
  991.                 goto do_action;
  992.                 }
  993.  
  994.             else
  995.                 {
  996.                 if ( ! yy_did_buffer_switch_on_eof )
  997.                 YY_NEW_FILE;
  998.                 }
  999.             }
  1000.             break;
  1001.  
  1002.             case EOB_ACT_CONTINUE_SCAN:
  1003.             yy_c_buf_p = yytext + yy_amount_of_matched_text;
  1004.  
  1005.             yy_current_state = yy_get_previous_state();
  1006.  
  1007.             yy_cp = yy_c_buf_p;
  1008.             yy_bp = yytext + YY_MORE_ADJ;
  1009.             goto yy_match;
  1010.  
  1011.             case EOB_ACT_LAST_MATCH:
  1012.             yy_c_buf_p =
  1013.                 &yy_current_buffer->yy_ch_buf[yy_n_chars];
  1014.  
  1015.             yy_current_state = yy_get_previous_state();
  1016.  
  1017.             yy_cp = yy_c_buf_p;
  1018.             yy_bp = yytext + YY_MORE_ADJ;
  1019.             goto yy_find_action;
  1020.             }
  1021.         break;
  1022.         }
  1023.  
  1024.         default:
  1025. #ifdef FLEX_DEBUG
  1026.         printf( "action # %d\n", yy_act );
  1027. #endif
  1028.         YY_FATAL_ERROR(
  1029.             "fatal flex scanner internal error--no action found" );
  1030.         }
  1031.     }
  1032.     }
  1033.  
  1034.  
  1035. /* yy_get_next_buffer - try to read in a new buffer
  1036.  *
  1037.  * synopsis
  1038.  *     int yy_get_next_buffer();
  1039.  *     
  1040.  * returns a code representing an action
  1041.  *     EOB_ACT_LAST_MATCH - 
  1042.  *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1043.  *     EOB_ACT_END_OF_FILE - end of file
  1044.  */
  1045.  
  1046. static int yy_get_next_buffer()
  1047.  
  1048.     {
  1049.     register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
  1050.     register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
  1051.     register int number_to_move, i;
  1052.     int ret_val;
  1053.  
  1054.     if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1055.     YY_FATAL_ERROR(
  1056.         "fatal flex scanner internal error--end of buffer missed" );
  1057.  
  1058.     /* try to read more data */
  1059.  
  1060.     /* first move last chars to start of buffer */
  1061.     number_to_move = yy_c_buf_p - yytext;
  1062.  
  1063.     for ( i = 0; i < number_to_move; ++i )
  1064.     *(dest++) = *(source++);
  1065.  
  1066.     if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
  1067.     /* don't do the read, it's not guaranteed to return an EOF,
  1068.      * just force an EOF
  1069.      */
  1070.     yy_n_chars = 0;
  1071.  
  1072.     else
  1073.     {
  1074.     int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
  1075.  
  1076.     if ( num_to_read > YY_READ_BUF_SIZE )
  1077.         num_to_read = YY_READ_BUF_SIZE;
  1078.  
  1079.     else if ( num_to_read <= 0 )
  1080.         YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
  1081.  
  1082.     /* read in more data */
  1083.     YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1084.           yy_n_chars, num_to_read );
  1085.     }
  1086.  
  1087.     if ( yy_n_chars == 0 )
  1088.     {
  1089.     if ( number_to_move - YY_MORE_ADJ == 1 )
  1090.         {
  1091.         ret_val = EOB_ACT_END_OF_FILE;
  1092.         yy_current_buffer->yy_eof_status = EOF_DONE;
  1093.         }
  1094.  
  1095.     else
  1096.         {
  1097.         ret_val = EOB_ACT_LAST_MATCH;
  1098.         yy_current_buffer->yy_eof_status = EOF_PENDING;
  1099.         }
  1100.     }
  1101.  
  1102.     else
  1103.     ret_val = EOB_ACT_CONTINUE_SCAN;
  1104.  
  1105.     yy_n_chars += number_to_move;
  1106.     yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1107.     yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1108.  
  1109.     /* yytext begins at the second character in yy_ch_buf; the first
  1110.      * character is the one which preceded it before reading in the latest
  1111.      * buffer; it needs to be kept around in case it's a newline, so
  1112.      * yy_get_previous_state() will have with '^' rules active
  1113.      */
  1114.  
  1115.     yytext = &yy_current_buffer->yy_ch_buf[1];
  1116.  
  1117.     return ( ret_val );
  1118.     }
  1119.  
  1120.  
  1121. /* yy_get_previous_state - get the state just before the EOB char was reached
  1122.  *
  1123.  * synopsis
  1124.  *     yy_state_type yy_get_previous_state();
  1125.  */
  1126.  
  1127. static yy_state_type yy_get_previous_state()
  1128.  
  1129.     {
  1130.     register yy_state_type yy_current_state;
  1131.     register YY_CHAR *yy_cp;
  1132.  
  1133.     yy_current_state = yy_start;
  1134.     yy_state_ptr = yy_state_buf;
  1135.     *yy_state_ptr++ = yy_current_state;
  1136.  
  1137.     for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1138.     {
  1139.     register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
  1140.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1141.         {
  1142.         yy_current_state = yy_def[yy_current_state];
  1143.         if ( yy_current_state >= 157 )
  1144.         yy_c = yy_meta[yy_c];
  1145.         }
  1146.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1147.     *yy_state_ptr++ = yy_current_state;
  1148.     }
  1149.  
  1150.     return ( yy_current_state );
  1151.     }
  1152.  
  1153.  
  1154. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1155.  *
  1156.  * synopsis
  1157.  *     next_state = yy_try_NUL_trans( current_state );
  1158.  */
  1159.  
  1160. #ifdef YY_USE_PROTOS
  1161. static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
  1162. #else
  1163. static yy_state_type yy_try_NUL_trans( yy_current_state )
  1164. register yy_state_type yy_current_state;
  1165. #endif
  1166.  
  1167.     {
  1168.     register int yy_is_jam;
  1169.  
  1170.     register YY_CHAR yy_c = 1;
  1171.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1172.     {
  1173.     yy_current_state = yy_def[yy_current_state];
  1174.     if ( yy_current_state >= 157 )
  1175.         yy_c = yy_meta[yy_c];
  1176.     }
  1177.     yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1178.     *yy_state_ptr++ = yy_current_state;
  1179.     yy_is_jam = (yy_current_state == 156);
  1180.  
  1181.     return ( yy_is_jam ? 0 : yy_current_state );
  1182.     }
  1183.  
  1184.  
  1185. #ifdef YY_USE_PROTOS
  1186. static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
  1187. #else
  1188. static void yyunput( c, yy_bp )
  1189. YY_CHAR c;
  1190. register YY_CHAR *yy_bp;
  1191. #endif
  1192.  
  1193.     {
  1194.     register YY_CHAR *yy_cp = yy_c_buf_p;
  1195.  
  1196.     /* undo effects of setting up yytext */
  1197.     *yy_cp = yy_hold_char;
  1198.  
  1199.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1200.     { /* need to shift things up to make room */
  1201.     register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
  1202.     register YY_CHAR *dest =
  1203.         &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
  1204.     register YY_CHAR *source =
  1205.         &yy_current_buffer->yy_ch_buf[number_to_move];
  1206.  
  1207.     while ( source > yy_current_buffer->yy_ch_buf )
  1208.         *--dest = *--source;
  1209.  
  1210.     yy_cp += dest - source;
  1211.     yy_bp += dest - source;
  1212.     yy_n_chars = yy_current_buffer->yy_buf_size;
  1213.  
  1214.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1215.         YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1216.     }
  1217.  
  1218.     if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
  1219.     yy_cp[-2] = '\n';
  1220.  
  1221.     *--yy_cp = c;
  1222.  
  1223.     /* note: the formal parameter *must* be called "yy_bp" for this
  1224.      *       macro to now work correctly
  1225.      */
  1226.     YY_DO_BEFORE_ACTION; /* set up yytext again */
  1227.     }
  1228.  
  1229.  
  1230. #ifdef __cplusplus
  1231. static int yyinput()
  1232. #else
  1233. static int input()
  1234. #endif
  1235.  
  1236.     {
  1237.     int c;
  1238.     YY_CHAR *yy_cp = yy_c_buf_p;
  1239.  
  1240.     *yy_cp = yy_hold_char;
  1241.  
  1242.     if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1243.     {
  1244.     /* yy_c_buf_p now points to the character we want to return.
  1245.      * If this occurs *before* the EOB characters, then it's a
  1246.      * valid NUL; if not, then we've hit the end of the buffer.
  1247.      */
  1248.     if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1249.         /* this was really a NUL */
  1250.         *yy_c_buf_p = '\0';
  1251.  
  1252.     else
  1253.         { /* need more input */
  1254.         yytext = yy_c_buf_p;
  1255.         ++yy_c_buf_p;
  1256.  
  1257.         switch ( yy_get_next_buffer() )
  1258.         {
  1259.         case EOB_ACT_END_OF_FILE:
  1260.             {
  1261.             if ( yywrap() )
  1262.             {
  1263.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  1264.             return ( EOF );
  1265.             }
  1266.  
  1267.             YY_NEW_FILE;
  1268.  
  1269. #ifdef __cplusplus
  1270.             return ( yyinput() );
  1271. #else
  1272.             return ( input() );
  1273. #endif
  1274.             }
  1275.             break;
  1276.  
  1277.         case EOB_ACT_CONTINUE_SCAN:
  1278.             yy_c_buf_p = yytext + YY_MORE_ADJ;
  1279.             break;
  1280.  
  1281.         case EOB_ACT_LAST_MATCH:
  1282. #ifdef __cplusplus
  1283.             YY_FATAL_ERROR( "unexpected last match in yyinput()" );
  1284. #else
  1285.             YY_FATAL_ERROR( "unexpected last match in input()" );
  1286. #endif
  1287.         }
  1288.         }
  1289.     }
  1290.  
  1291.     c = *yy_c_buf_p;
  1292.     yy_hold_char = *++yy_c_buf_p;
  1293.  
  1294.     return ( c );
  1295.     }
  1296.  
  1297.  
  1298. #ifdef YY_USE_PROTOS
  1299. void yyrestart( FILE *input_file )
  1300. #else
  1301. void yyrestart( input_file )
  1302. FILE *input_file;
  1303. #endif
  1304.  
  1305.     {
  1306.     yy_init_buffer( yy_current_buffer, input_file );
  1307.     yy_load_buffer_state();
  1308.     }
  1309.  
  1310.  
  1311. #ifdef YY_USE_PROTOS
  1312. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  1313. #else
  1314. void yy_switch_to_buffer( new_buffer )
  1315. YY_BUFFER_STATE new_buffer;
  1316. #endif
  1317.  
  1318.     {
  1319.     if ( yy_current_buffer == new_buffer )
  1320.     return;
  1321.  
  1322.     if ( yy_current_buffer )
  1323.     {
  1324.     /* flush out information for old buffer */
  1325.     *yy_c_buf_p = yy_hold_char;
  1326.     yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  1327.     yy_current_buffer->yy_n_chars = yy_n_chars;
  1328.     }
  1329.  
  1330.     yy_current_buffer = new_buffer;
  1331.     yy_load_buffer_state();
  1332.  
  1333.     /* we don't actually know whether we did this switch during
  1334.      * EOF (yywrap()) processing, but the only time this flag
  1335.      * is looked at is after yywrap() is called, so it's safe
  1336.      * to go ahead and always set it.
  1337.      */
  1338.     yy_did_buffer_switch_on_eof = 1;
  1339.     }
  1340.  
  1341.  
  1342. #ifdef YY_USE_PROTOS
  1343. void yy_load_buffer_state( void )
  1344. #else
  1345. void yy_load_buffer_state()
  1346. #endif
  1347.  
  1348.     {
  1349.     yy_n_chars = yy_current_buffer->yy_n_chars;
  1350.     yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  1351.     yyin = yy_current_buffer->yy_input_file;
  1352.     yy_hold_char = *yy_c_buf_p;
  1353.     }
  1354.  
  1355.  
  1356. #ifdef YY_USE_PROTOS
  1357. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  1358. #else
  1359. YY_BUFFER_STATE yy_create_buffer( file, size )
  1360. FILE *file;
  1361. int size;
  1362. #endif
  1363.  
  1364.     {
  1365.     YY_BUFFER_STATE b;
  1366.  
  1367.     b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
  1368.  
  1369.     if ( ! b )
  1370.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1371.  
  1372.     b->yy_buf_size = size;
  1373.  
  1374.     /* yy_ch_buf has to be 2 characters longer than the size given because
  1375.      * we need to put in 2 end-of-buffer characters.
  1376.      */
  1377.     b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
  1378.  
  1379.     if ( ! b->yy_ch_buf )
  1380.     YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1381.  
  1382.     yy_init_buffer( b, file );
  1383.  
  1384.     return ( b );
  1385.     }
  1386.  
  1387.  
  1388. #ifdef YY_USE_PROTOS
  1389. void yy_delete_buffer( YY_BUFFER_STATE b )
  1390. #else
  1391. void yy_delete_buffer( b )
  1392. YY_BUFFER_STATE b;
  1393. #endif
  1394.  
  1395.     {
  1396.     if ( b == yy_current_buffer )
  1397.     yy_current_buffer = (YY_BUFFER_STATE) 0;
  1398.  
  1399.     free( (char *) b->yy_ch_buf );
  1400.     free( (char *) b );
  1401.     }
  1402.  
  1403.  
  1404. #ifdef YY_USE_PROTOS
  1405. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  1406. #else
  1407. void yy_init_buffer( b, file )
  1408. YY_BUFFER_STATE b;
  1409. FILE *file;
  1410. #endif
  1411.  
  1412.     {
  1413.     b->yy_input_file = file;
  1414.  
  1415.     /* we put in the '\n' and start reading from [1] so that an
  1416.      * initial match-at-newline will be true.
  1417.      */
  1418.  
  1419.     b->yy_ch_buf[0] = '\n';
  1420.     b->yy_n_chars = 1;
  1421.  
  1422.     /* we always need two end-of-buffer characters.  The first causes
  1423.      * a transition to the end-of-buffer state.  The second causes
  1424.      * a jam in that state.
  1425.      */
  1426.     b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1427.     b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
  1428.  
  1429.     b->yy_buf_pos = &b->yy_ch_buf[1];
  1430.  
  1431.     b->yy_eof_status = EOF_NOT_SEEN;
  1432.     }
  1433. # line 142 "r:lex.l"
  1434.  
  1435.  
  1436.  
  1437.  
  1438.